﻿<Window x:Class="Led_Application.LEDitor"
        xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
        xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
        Title="LEDitor" Height="200" Width="500" ResizeMode="NoResize" WindowStartupLocation="CenterScreen" WindowStyle="ToolWindow">
    <Grid>
        <Grid.RowDefinitions>
            <RowDefinition Height="30px"></RowDefinition>
            <RowDefinition ></RowDefinition>
        </Grid.RowDefinitions>

        <Grid>
            <Grid.ColumnDefinitions>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
                <ColumnDefinition></ColumnDefinition>
            </Grid.ColumnDefinitions>

            <Rectangle Name="led0" Grid.Column="0" Fill="Gray" Stroke="Black" StrokeThickness="2" RadiusX="2" RadiusY="2" Margin="5" MouseLeftButtonDown="ledClick" Tag="32768"></Rectangle>
            <Rectangle Name="led1" Grid.Column="1" Fill="Gray" Stroke="Black" StrokeThickness="2" RadiusX="2" RadiusY="2" Margin="5" MouseLeftButtonDown="ledClick" Tag="16384"></Rectangle>
            <Rectangle Name="led2" Grid.Column="2" Fill="Gray" Stroke="Black" StrokeThickness="2" RadiusX="2" RadiusY="2" Margin="5" MouseLeftButtonDown="ledClick" Tag="8192"></Rectangle>
            <Rectangle Name="led3" Grid.Column="3" Fill="Gray" Stroke="Black" StrokeThickness="2" RadiusX="2" RadiusY="2" Margin="5" MouseLeftButtonDown="ledClick" Tag="4096"></Rectangle>
            <Rectangle Name="led4" Grid.Column="4" Fill="Gray" Stroke="Black" StrokeThickness="2" RadiusX="2" RadiusY="2" Margin="5" MouseLeftButtonDown="ledClick" Tag="2048"></Rectangle>
            <Rectangle Name="led5" Grid.Column="5" Fill="Gray" Stroke="Black" StrokeThickness="2" RadiusX="2" RadiusY="2" Margin="5" MouseLeftButtonDown="ledClick" Tag="1024"></Rectangle>
            <Rectangle Name="led6" Grid.Column="6" Fill="Gray" Stroke="Black" StrokeThickness="2" RadiusX="2" RadiusY="2" Margin="5" MouseLeftButtonDown="ledClick" Tag="512"></Rectangle>
            <Rectangle Name="led7" Grid.Column="7" Fill="Gray" Stroke="Black" StrokeThickness="2" RadiusX="2" RadiusY="2" Margin="5" MouseLeftButtonDown="ledClick" Tag="256"></Rectangle>
            <Rectangle Name="led8" Grid.Column="8" Fill="Gray" Stroke="Black" StrokeThickness="2" RadiusX="2" RadiusY="2" Margin="5" MouseLeftButtonDown="ledClick" Tag="128"></Rectangle>
            <Rectangle Name="led9" Grid.Column="9" Fill="Gray" Stroke="Black" StrokeThickness="2" RadiusX="2" RadiusY="2" Margin="5" MouseLeftButtonDown="ledClick" Tag="64"></Rectangle>
            <Rectangle Name="led10" Grid.Column="10" Fill="Gray" Stroke="Black" StrokeThickness="2" RadiusX="2" RadiusY="2" Margin="5" MouseLeftButtonDown="ledClick" Tag="32"></Rectangle>
            <Rectangle Name="led11" Grid.Column="11" Fill="Gray" Stroke="Black" StrokeThickness="2" RadiusX="2" RadiusY="2" Margin="5" MouseLeftButtonDown="ledClick" Tag="16"></Rectangle>
            <Rectangle Name="led12" Grid.Column="12" Fill="Gray" Stroke="Black" StrokeThickness="2" RadiusX="2" RadiusY="2" Margin="5" MouseLeftButtonDown="ledClick" Tag="8"></Rectangle>
            <Rectangle Name="led13" Grid.Column="13" Fill="Gray" Stroke="Black" StrokeThickness="2" RadiusX="2" RadiusY="2" Margin="5" MouseLeftButtonDown="ledClick" Tag="4"></Rectangle>
            <Rectangle Name="led14" Grid.Column="14" Fill="Gray" Stroke="Black" StrokeThickness="2" RadiusX="2" RadiusY="2" Margin="5" MouseLeftButtonDown="ledClick" Tag="2"></Rectangle>
            <Rectangle Name="led15" Grid.Column="15" Fill="Gray" Stroke="Black" StrokeThickness="2" RadiusX="2" RadiusY="2" Margin="5" MouseLeftButtonDown="ledClick" Tag="1"></Rectangle>
            
        </Grid>
        
        <!-- Il valore attuale -->
        <TextBlock Grid.Row="1" Margin="10" HorizontalAlignment="Left" Name="lblValore" Text="0" VerticalAlignment="Top" FontSize="22" FontWeight="Bold" />
        
    </Grid>
</Window>
